﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class LandControl
{
    Land landModel;
    public void CreateLand(Vector3 position) {
        if (landModel == null) {
            landModel = new Land(position);
        }
    }
    public Land GetLand() {
        return landModel;
    }

    public Vector3 AddRole(Role roleModel) {
        roleModel.role.transform.parent = landModel.land.transform;
        roleModel.inBoat = false;
        if (roleModel.isPriest) landModel.priestCount++;
        else landModel.devilCount++;
        return Position.role_land[roleModel.id];
    }

    public void RemoveRole(Role roleModel) {
        if (roleModel.isPriest) landModel.priestCount--;
        else landModel.devilCount--;
    }
}
